CFLAGS = -Wall
CLINK = -lrt
CPPFLAGS1 = `pkg-config --cflags playerc++`
CPPFLAGS2 = `pkg-config --libs playerc++`
PROGFLAGS = -g
OBJS = scheduler.o fonte.o

all: scheduler

scheduler.o: scheduler.c
	gcc ${CFLAGS} -o $@ -c scheduler.c ${CLINK}

fonte.o: fonte.cc
	g++ -o $@ dijkstra.c ${CPPFLAGS1} fonte.cc ${CPPFLAGS2}

scheduler: ${OBJS}
	g++ $(PROGFLAGS) $(CFLAGS) -o $@ $(OBJS)
	
clean:
	rm -f *.o *~ scheduler

